package fr.labri.macchiato.core.model;

/**
 * An unknown instance of a product. An article is only identified by its name,
 * and can be qualified as a generic product (e.g. pasta, bread, etc...)
 * 
 * @author Matthieu FOUCAULT
 * 
 */
public class Item extends AbstractProduct implements Product {

	Item() {
		super();
	}

	public Item(String name) {
		this();
		setName(name);
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Item)
			return ((Item) obj).getName().equals(this.getName());
		else
			return false;
	}

}
